ab1f0132625d17b7dbc0961d6cf474864512ba72,src/test/java/org/jtwig/integration/issues/Issue140Test.java,Issue140Test,undefinedVarThrowsExceptionOnEvaluation,#,27

Before Change


        expectedException.expect(CalculationException.class);
        expectedException.expectMessage(containsString("Variable 'var' undefined"));

        JtwigTemplate.inlineTemplate("{{ var is null }}", configuration()
                .withStrictMode(true)
                .build())
                .render(JtwigModel.newModel());
    }

After Change


        expectedException.expect(CalculationException.class);
        expectedException.expectMessage(containsString("Variable 'var' undefined"));

        JtwigTemplate.inlineTemplate("{{ var is null }}", configuration()
                .render().withStrictMode(true).and()
                .build())
                .render(JtwigModel.newModel());
    }